
from nodes import FindFiles, FileInfo, Point, Graph
from data import List
from graph import Pipeline

file_info_pipe = Pipeline()

find_files = FindFiles(root="../ni/res", extentions=["ma"], recursion=True)
file_info = FileInfo()
group_info = List()
point = Point(radius=20)
file_graph = Graph()

file_info_pipe.add_nodes(find_files, file_info, group_info, point)

file_info_pipe.connect(find_files, "files", file_info, "file")
file_info_pipe.connect(file_info, "modified", point, "x")
file_info_pipe.connect(file_info, "size", point, "y")
file_info_pipe.connect(find_files, "files", point, "name")
file_info_pipe.connect(point, graph, "add_point")

file_infp_pipe.update()

